package com.example.demo.model;

import com.example.demo.common.DataMapping;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.math.BigDecimal;

/**
 * @author linjingze
 * @date 2023/12/18 11:06 AM
 */
@Data
public class BizInfo {



    @DataMapping("分单号")
    private String bizNo;

    @DataMapping("仓库")
    private String warehouse;
    private String newWarehouse;

    @DataMapping("邮编")
    private String zipCode;


    @DataMapping("体积")
    private BigDecimal volume;
    @DataMapping(value = "毛总", otherName = "毛重")
    private BigDecimal weight;

    @DataMapping("件数")
    private BigDecimal number;

    @DataMapping("是否包税")
    private String taxFarmingDesc;
    @DataMapping("")
    private String customerName;

    @DataMapping("附加费")
    private BigDecimal fjfPrice;

    @DataMapping("报关费BL")
    private BigDecimal bgfPrice;

    private BigDecimal rt;
    private BigDecimal rtPrice;
    private BigDecimal useBoard;
    private BigDecimal deliveryPrice;
    private BigDecimal amount;


    public boolean isTaxFarming() {
        return StringUtils.isNotBlank(taxFarmingDesc) && !taxFarmingDesc.contains("不包税");
    }
}
